<?php

namespace App\Service\Index;

use App\Model\VoiceText;
use App\Service\BaseService;

/**
 * 语聊文案列表
 */
class VoiceTextService extends BaseService
{
    public function handle()
    {
        $userId = $this->getUserId();
        $list = VoiceText::getList(10, 1);
        $ret['list'] = [];
        foreach ($list as $key=>$val){
            $ret['list'][$key]['text'] = $val;
        }
        return $ret;
    }
}
